
# coding: utf-8

# In[1]:

import numpy as np


# In[2]:

#3 - Create a null vector of size 10 (创建一个大小为10的空数组)
null_10 = np.empty(10)


# In[3]:

print(null_10)


# In[4]:

#7 - Create a vector with values ranging from 10 to 49 (创建一个元素值为10-49的数组)
vectror = np.arange(10,50)


# In[5]:

print(vectror)


# In[6]:

#11 - Create a 3x3 identity matrix (创建一个3 * 3大小的单位矩阵)
eye_3 = np.eye(3)


# In[7]:

print(eye_3)


# In[9]:

import numpy as np
def arrays(arr):
    arr.reverse()
    return np.array(arr, dtype = float)
arr = input().strip().split(' ')
result = arrays(arr)
print(result)


# In[30]:

#Zeros and Ones
import numpy

N = tuple([eval(i) for i in input().strip().split()])
#eval功能
for i in N:
    print(numpy.zeros(i, dtype=int))
    print(numpy.ones(i, dtype=int))


# In[31]:

#Eye and Identity


# In[33]:

print (np.identity(3)) #3 is for  dimension 3 X 3


# In[34]:

print(np.eye(3))


# In[56]:

x, y = [eval(i) for i in input().strip().split()]
print(np.eye(x, y))

